package top.dark.search.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.dark.common.utils.R;

import java.util.List;

/**
 * Author: lijiao
 * description:
 * Create Time: 2021/3/15 22:52
 */
@FeignClient("mall-product")
public interface ProductFeignService {

    @RequestMapping("/product/attr/info/{attrId}")
    R info(@PathVariable("attrId") Long attrId);

    @RequestMapping("/product/brand/brandInfoByIds")
    R brandInfoByIds(@RequestParam("brandIds") List<Long> brandIds);
}
